<!--
医院管理-医院维护
 add by yyp 2020-01-12
-->
<template lang="pug">
  keep-alive
    kalix-table(bizKey="Hospital" title='医院维护' ref="kalixTable"
    v-bind:tableFields="tableFields"
    v-bind:targetURL="HospitalURL"
    v-bind:bizDialog="hospitalDialog"
    v-bind:btnList="hospitalBtnList"
    v-bind:toolbarBtnList="toolbarBtnList"
    bizSearch="hospitalSearch")
      template(slot="tableColumnSlot")
        el-table-column(prop="hospitalName" label="医院名称" align="center")
        el-table-column(prop="hospitalAdress" label="医院地址" align="center")
        el-table-column(prop="hospitalLogo" label="医院LOGO" align="center")
          template(slot-scope="scope")
            img(v-if="scope.row.hospitalLogo" v-bind:src="scope.row.hospitalLogo" width="52" height="52" alt="")
</template>

<script type="text/ecmascript-6">
  import {HospitalURL} from '../../config.toml'
  import {hospitalConfigBtnList} from './config'
  import KalixTable from '../../../../../components/corelib/components/common/baseTable'

  export default {
    name: 'kalix-telemedicine-hospitals',
    components: {KalixTable},
    data() {
      return {
        HospitalURL: HospitalURL,
        tableFields: [
          {prop: 'hospitalName', label: '医院名称'},
          {prop: 'hospitalAdress', label: '医院地址'},
          {prop: 'hospitalLogo', label: '医院LOGO'}
        ],
        hospitalDialog: [
          {id: 'add', dialog: 'hospitalAdd'},
          {id: 'edit', dialog: 'hospitalEdit'},
          {id: 'view', dialog: 'hospitalView'}
        ],
        hospitalBtnList: hospitalConfigBtnList,
        toolbarBtnList: [
          {id: 'add', isShow: true, title: '添加', icon: 'icon-pinleizengjia', isPermission: true}
        ]
      }
    }
  }
</script>

<style scoped lang="stylus">

</style>
